home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
disktools
/
allgemein
/
find
/
find.qi
< prev
next >
Wrap
Text File
|
1995-03-09
|
4KB
|
88 lines
#include <ak/qual.h>
#define DO_QUAL() list_qual_analyse(qual_arr,argv,&argc,usage,0)
#define CLEANUP_QUAL()
#define Q_QUIET 0
#define Q_DEVICE 1
#define Q_SHOWREADS 2
#define Q_COUNT 3
#define Q_TRACKS 4
#define Q_NAME 5
#define Q_IGNORECASE 6
#define Q_PARENT 7
#define Q_KEY 8
#define Q_HASHCHAIN 9
#define Q_EXTENSION 10
#define Q_SEQUENCENUM 11
#define Q_BYTESIZE 12
#define Q_BLOCKCOUNT 13
#define Q_FIRSTDATABLK 14
#define Q_ANYDATABLK 15
#define Q_ANYRANGEDATA 16
#define Q_NEXTDATABLK 17
#define Q_ULONG 18
#define Q_STRING 19
#define Q_CACHE 20
#define Q_CHECKSUM 21
#define Q_FILENAMES 22
#define Q_FROMBLOCK 23
#define Q_TOBLOCK 24
#define Q_VALIDONLY 25
#define Q_ONCE 26
Static bool Quiet=false;
Static char Device[77+1];
Static bool ShowReads=false;
Static ulong Count=1000;
Static bool Tracks=false;
Static char Name[BLOCKFILENAMELENGTH+1]="";
Static bool ICase=true;
Static ulong Parent=ULONGMAX;
Static ulong Key=ULONGMAX;
Static ulong HashChain=ULONGMAX;
Static ulong Extension=ULONGMAX;
Static ulong SequenceNum=ULONGMAX;
Static ulong ByteSize=ULONGMAX;
Static ulong BlockCount=ULONGMAX;
Static ulong FirstDataBlk=ULONGMAX;
Static ulong AnyDataBlk[999];
Static ulong AnyRangeData[98];
Static ulong NextDataBlk=ULONGMAX;
Static ulong ULong[999];
Static char AString[STR_LEN+1]="";
Static short Cache=88;
Static bool CheckChecksum=false;
Static bool FileNames=true;
Static long FromBlock=0;
Static long ToBlock=0x7fffffff;
Static bool ValidOnly=true;
Static bool Once=true;
Static QUAL qual_arr[]={
1,"QUIET",typ_logical,(char *)&Quiet,0,0,NULL,0x0,0x0,0,0,0,
1,"DEVICE",typ_string,Device,2,77,NULL,0x0,0x0,0,0,ATT_MANDATORY|ATT_LOWER,
1,"SHOWREADS",typ_logical,(char *)&ShowReads,0,0,NULL,0x10,0x0,0,0,0,
1,"COUNT",typ_ulong,(char *)&Count,1,10000000,NULL,0x10,0x4,0,0,0,
1,"TRACKS",typ_logical,(char *)&Tracks,0,0,NULL,0xc,0x0,0,0,0,
1,"NAME",typ_string,Name,1,BLOCKFILENAMELENGTH,NULL,0x0,0x0,0,0,0,
1,"IGNORECASE",typ_logical,(char *)&ICase,0,0,NULL,0x0,0x0,0,0,0,
1,"PARENT",typ_ulong,(char *)&Parent,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"KEY",typ_ulong,(char *)&Key,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"HASHCHAIN",typ_ulong,(char *)&HashChain,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"EXTENSION",typ_ulong,(char *)&Extension,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
2,"SEQUENCENUM",typ_ulong,(char *)&SequenceNum,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"BYTESIZE",typ_ulong,(char *)&ByteSize,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
2,"BLOCKCOUNT",typ_ulong,(char *)&BlockCount,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"FIRSTDATABLK",typ_ulong,(char *)&FirstDataBlk,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"ANYDATABLK",typ_ulong,(char *)AnyDataBlk,0,0x7fffffff,NULL,0x0,0x0,999,0,ATT_HEX,
4,"ANYRANGEDATA",typ_ulong,(char *)AnyRangeData,0,0x7fffffff,NULL,0x0,0x0,98,0,ATT_HEX,
2,"NEXTDATABLK",typ_ulong,(char *)&NextDataBlk,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"ULONG",typ_ulong,(char *)ULong,0,0xffffffff,NULL,0x0,0x0,999,0,ATT_HEX,
2,"STRING",typ_string,AString,1,STR_LEN,NULL,0x0,0x0,0,0,0,
2,"CACHE",typ_short,(char *)&Cache,1,10000,NULL,0x0,0x0,0,0,0,
2,"CHECKSUM",typ_logical,(char *)&CheckChecksum,0,0,NULL,0x0,0x0,0,0,0,
3,"FILENAMES",typ_logical,(char *)&FileNames,0,0,NULL,0x0,0x0,0,0,0,
2,"FROMBLOCK",typ_long,(char *)&FromBlock,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
2,"TOBLOCK",typ_long,(char *)&ToBlock,0,0x7fffffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"VALIDONLY",typ_logical,(char *)&ValidOnly,0,0,NULL,0x0,0x0,0,0,0,
1,"ONCE",typ_logical,(char *)&Once,0,0,NULL,0x0,0x0,0,0,0,
0,NULL};
Static char usage[]="";